package com.lrh.just.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ProdInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProdInfoExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andProdIdIsNull() {
            addCriterion("prod_id is null");
            return (Criteria) this;
        }

        public Criteria andProdIdIsNotNull() {
            addCriterion("prod_id is not null");
            return (Criteria) this;
        }

        public Criteria andProdIdEqualTo(String value) {
            addCriterion("prod_id =", value, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdNotEqualTo(String value) {
            addCriterion("prod_id <>", value, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdGreaterThan(String value) {
            addCriterion("prod_id >", value, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdGreaterThanOrEqualTo(String value) {
            addCriterion("prod_id >=", value, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdLessThan(String value) {
            addCriterion("prod_id <", value, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdLessThanOrEqualTo(String value) {
            addCriterion("prod_id <=", value, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdLike(String value) {
            addCriterion("prod_id like", value, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdNotLike(String value) {
            addCriterion("prod_id not like", value, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdIn(List<String> values) {
            addCriterion("prod_id in", values, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdNotIn(List<String> values) {
            addCriterion("prod_id not in", values, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdBetween(String value1, String value2) {
            addCriterion("prod_id between", value1, value2, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdIdNotBetween(String value1, String value2) {
            addCriterion("prod_id not between", value1, value2, "prodId");
            return (Criteria) this;
        }

        public Criteria andProdNameIsNull() {
            addCriterion("prod_name is null");
            return (Criteria) this;
        }

        public Criteria andProdNameIsNotNull() {
            addCriterion("prod_name is not null");
            return (Criteria) this;
        }

        public Criteria andProdNameEqualTo(String value) {
            addCriterion("prod_name =", value, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameNotEqualTo(String value) {
            addCriterion("prod_name <>", value, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameGreaterThan(String value) {
            addCriterion("prod_name >", value, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameGreaterThanOrEqualTo(String value) {
            addCriterion("prod_name >=", value, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameLessThan(String value) {
            addCriterion("prod_name <", value, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameLessThanOrEqualTo(String value) {
            addCriterion("prod_name <=", value, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameLike(String value) {
            addCriterion("prod_name like", value, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameNotLike(String value) {
            addCriterion("prod_name not like", value, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameIn(List<String> values) {
            addCriterion("prod_name in", values, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameNotIn(List<String> values) {
            addCriterion("prod_name not in", values, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameBetween(String value1, String value2) {
            addCriterion("prod_name between", value1, value2, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdNameNotBetween(String value1, String value2) {
            addCriterion("prod_name not between", value1, value2, "prodName");
            return (Criteria) this;
        }

        public Criteria andProdStateIsNull() {
            addCriterion("prod_state is null");
            return (Criteria) this;
        }

        public Criteria andProdStateIsNotNull() {
            addCriterion("prod_state is not null");
            return (Criteria) this;
        }

        public Criteria andProdStateEqualTo(String value) {
            addCriterion("prod_state =", value, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateNotEqualTo(String value) {
            addCriterion("prod_state <>", value, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateGreaterThan(String value) {
            addCriterion("prod_state >", value, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateGreaterThanOrEqualTo(String value) {
            addCriterion("prod_state >=", value, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateLessThan(String value) {
            addCriterion("prod_state <", value, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateLessThanOrEqualTo(String value) {
            addCriterion("prod_state <=", value, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateLike(String value) {
            addCriterion("prod_state like", value, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateNotLike(String value) {
            addCriterion("prod_state not like", value, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateIn(List<String> values) {
            addCriterion("prod_state in", values, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateNotIn(List<String> values) {
            addCriterion("prod_state not in", values, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateBetween(String value1, String value2) {
            addCriterion("prod_state between", value1, value2, "prodState");
            return (Criteria) this;
        }

        public Criteria andProdStateNotBetween(String value1, String value2) {
            addCriterion("prod_state not between", value1, value2, "prodState");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterionForJDBCDate("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterionForJDBCDate("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterionForJDBCDate("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterionForJDBCDate("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterionForJDBCDate("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterionForJDBCDate("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andInitPriceIsNull() {
            addCriterion("init_price is null");
            return (Criteria) this;
        }

        public Criteria andInitPriceIsNotNull() {
            addCriterion("init_price is not null");
            return (Criteria) this;
        }

        public Criteria andInitPriceEqualTo(Double value) {
            addCriterion("init_price =", value, "initPrice");
            return (Criteria) this;
        }

        public Criteria andInitPriceNotEqualTo(Double value) {
            addCriterion("init_price <>", value, "initPrice");
            return (Criteria) this;
        }

        public Criteria andInitPriceGreaterThan(Double value) {
            addCriterion("init_price >", value, "initPrice");
            return (Criteria) this;
        }

        public Criteria andInitPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("init_price >=", value, "initPrice");
            return (Criteria) this;
        }

        public Criteria andInitPriceLessThan(Double value) {
            addCriterion("init_price <", value, "initPrice");
            return (Criteria) this;
        }

        public Criteria andInitPriceLessThanOrEqualTo(Double value) {
            addCriterion("init_price <=", value, "initPrice");
            return (Criteria) this;
        }

        public Criteria andInitPriceIn(List<Double> values) {
            addCriterion("init_price in", values, "initPrice");
            return (Criteria) this;
        }

        public Criteria andInitPriceNotIn(List<Double> values) {
            addCriterion("init_price not in", values, "initPrice");
            return (Criteria) this;
        }

        public Criteria andInitPriceBetween(Double value1, Double value2) {
            addCriterion("init_price between", value1, value2, "initPrice");
            return (Criteria) this;
        }

        public Criteria andInitPriceNotBetween(Double value1, Double value2) {
            addCriterion("init_price not between", value1, value2, "initPrice");
            return (Criteria) this;
        }

        public Criteria andAddRangeIsNull() {
            addCriterion("add_range is null");
            return (Criteria) this;
        }

        public Criteria andAddRangeIsNotNull() {
            addCriterion("add_range is not null");
            return (Criteria) this;
        }

        public Criteria andAddRangeEqualTo(Double value) {
            addCriterion("add_range =", value, "addRange");
            return (Criteria) this;
        }

        public Criteria andAddRangeNotEqualTo(Double value) {
            addCriterion("add_range <>", value, "addRange");
            return (Criteria) this;
        }

        public Criteria andAddRangeGreaterThan(Double value) {
            addCriterion("add_range >", value, "addRange");
            return (Criteria) this;
        }

        public Criteria andAddRangeGreaterThanOrEqualTo(Double value) {
            addCriterion("add_range >=", value, "addRange");
            return (Criteria) this;
        }

        public Criteria andAddRangeLessThan(Double value) {
            addCriterion("add_range <", value, "addRange");
            return (Criteria) this;
        }

        public Criteria andAddRangeLessThanOrEqualTo(Double value) {
            addCriterion("add_range <=", value, "addRange");
            return (Criteria) this;
        }

        public Criteria andAddRangeIn(List<Double> values) {
            addCriterion("add_range in", values, "addRange");
            return (Criteria) this;
        }

        public Criteria andAddRangeNotIn(List<Double> values) {
            addCriterion("add_range not in", values, "addRange");
            return (Criteria) this;
        }

        public Criteria andAddRangeBetween(Double value1, Double value2) {
            addCriterion("add_range between", value1, value2, "addRange");
            return (Criteria) this;
        }

        public Criteria andAddRangeNotBetween(Double value1, Double value2) {
            addCriterion("add_range not between", value1, value2, "addRange");
            return (Criteria) this;
        }

        public Criteria andProdDetailIsNull() {
            addCriterion("prod_detail is null");
            return (Criteria) this;
        }

        public Criteria andProdDetailIsNotNull() {
            addCriterion("prod_detail is not null");
            return (Criteria) this;
        }

        public Criteria andProdDetailEqualTo(String value) {
            addCriterion("prod_detail =", value, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailNotEqualTo(String value) {
            addCriterion("prod_detail <>", value, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailGreaterThan(String value) {
            addCriterion("prod_detail >", value, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailGreaterThanOrEqualTo(String value) {
            addCriterion("prod_detail >=", value, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailLessThan(String value) {
            addCriterion("prod_detail <", value, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailLessThanOrEqualTo(String value) {
            addCriterion("prod_detail <=", value, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailLike(String value) {
            addCriterion("prod_detail like", value, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailNotLike(String value) {
            addCriterion("prod_detail not like", value, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailIn(List<String> values) {
            addCriterion("prod_detail in", values, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailNotIn(List<String> values) {
            addCriterion("prod_detail not in", values, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailBetween(String value1, String value2) {
            addCriterion("prod_detail between", value1, value2, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdDetailNotBetween(String value1, String value2) {
            addCriterion("prod_detail not between", value1, value2, "prodDetail");
            return (Criteria) this;
        }

        public Criteria andProdRuleIsNull() {
            addCriterion("prod_rule is null");
            return (Criteria) this;
        }

        public Criteria andProdRuleIsNotNull() {
            addCriterion("prod_rule is not null");
            return (Criteria) this;
        }

        public Criteria andProdRuleEqualTo(String value) {
            addCriterion("prod_rule =", value, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleNotEqualTo(String value) {
            addCriterion("prod_rule <>", value, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleGreaterThan(String value) {
            addCriterion("prod_rule >", value, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleGreaterThanOrEqualTo(String value) {
            addCriterion("prod_rule >=", value, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleLessThan(String value) {
            addCriterion("prod_rule <", value, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleLessThanOrEqualTo(String value) {
            addCriterion("prod_rule <=", value, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleLike(String value) {
            addCriterion("prod_rule like", value, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleNotLike(String value) {
            addCriterion("prod_rule not like", value, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleIn(List<String> values) {
            addCriterion("prod_rule in", values, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleNotIn(List<String> values) {
            addCriterion("prod_rule not in", values, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleBetween(String value1, String value2) {
            addCriterion("prod_rule between", value1, value2, "prodRule");
            return (Criteria) this;
        }

        public Criteria andProdRuleNotBetween(String value1, String value2) {
            addCriterion("prod_rule not between", value1, value2, "prodRule");
            return (Criteria) this;
        }

        public Criteria andCreateDtIsNull() {
            addCriterion("create_dt is null");
            return (Criteria) this;
        }

        public Criteria andCreateDtIsNotNull() {
            addCriterion("create_dt is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDtEqualTo(Date value) {
            addCriterionForJDBCDate("create_dt =", value, "createDt");
            return (Criteria) this;
        }

        public Criteria andCreateDtNotEqualTo(Date value) {
            addCriterionForJDBCDate("create_dt <>", value, "createDt");
            return (Criteria) this;
        }

        public Criteria andCreateDtGreaterThan(Date value) {
            addCriterionForJDBCDate("create_dt >", value, "createDt");
            return (Criteria) this;
        }

        public Criteria andCreateDtGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("create_dt >=", value, "createDt");
            return (Criteria) this;
        }

        public Criteria andCreateDtLessThan(Date value) {
            addCriterionForJDBCDate("create_dt <", value, "createDt");
            return (Criteria) this;
        }

        public Criteria andCreateDtLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("create_dt <=", value, "createDt");
            return (Criteria) this;
        }

        public Criteria andCreateDtIn(List<Date> values) {
            addCriterionForJDBCDate("create_dt in", values, "createDt");
            return (Criteria) this;
        }

        public Criteria andCreateDtNotIn(List<Date> values) {
            addCriterionForJDBCDate("create_dt not in", values, "createDt");
            return (Criteria) this;
        }

        public Criteria andCreateDtBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("create_dt between", value1, value2, "createDt");
            return (Criteria) this;
        }

        public Criteria andCreateDtNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("create_dt not between", value1, value2, "createDt");
            return (Criteria) this;
        }

        public Criteria andUpdateDtIsNull() {
            addCriterion("update_dt is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDtIsNotNull() {
            addCriterion("update_dt is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDtEqualTo(Date value) {
            addCriterionForJDBCDate("update_dt =", value, "updateDt");
            return (Criteria) this;
        }

        public Criteria andUpdateDtNotEqualTo(Date value) {
            addCriterionForJDBCDate("update_dt <>", value, "updateDt");
            return (Criteria) this;
        }

        public Criteria andUpdateDtGreaterThan(Date value) {
            addCriterionForJDBCDate("update_dt >", value, "updateDt");
            return (Criteria) this;
        }

        public Criteria andUpdateDtGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("update_dt >=", value, "updateDt");
            return (Criteria) this;
        }

        public Criteria andUpdateDtLessThan(Date value) {
            addCriterionForJDBCDate("update_dt <", value, "updateDt");
            return (Criteria) this;
        }

        public Criteria andUpdateDtLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("update_dt <=", value, "updateDt");
            return (Criteria) this;
        }

        public Criteria andUpdateDtIn(List<Date> values) {
            addCriterionForJDBCDate("update_dt in", values, "updateDt");
            return (Criteria) this;
        }

        public Criteria andUpdateDtNotIn(List<Date> values) {
            addCriterionForJDBCDate("update_dt not in", values, "updateDt");
            return (Criteria) this;
        }

        public Criteria andUpdateDtBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("update_dt between", value1, value2, "updateDt");
            return (Criteria) this;
        }

        public Criteria andUpdateDtNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("update_dt not between", value1, value2, "updateDt");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}